package com.dianping.cat.consumer.top.model.transform;

import com.dianping.cat.consumer.top.model.IVisitor;
import com.dianping.cat.consumer.top.model.entity.Domain;
import com.dianping.cat.consumer.top.model.entity.Error;
import com.dianping.cat.consumer.top.model.entity.Machine;
import com.dianping.cat.consumer.top.model.entity.Segment;
import com.dianping.cat.consumer.top.model.entity.TopReport;

public abstract class BaseVisitor
  implements IVisitor {
  public void visitDomain(Domain domain) {
/* 13 */     for (Segment segment : domain.getSegments().values()) {
/* 14 */       visitSegment(segment);
    }
  }



  public void visitError(Error error) {}



  public void visitMachine(Machine machine) {}


  public void visitSegment(Segment segment) {
/* 28 */     for (Error error : segment.getErrors().values()) {
/* 29 */       visitError(error);
    }

/* 32 */     for (Machine machine : segment.getMachines().values()) {
/* 33 */       visitMachine(machine);
    }
  }


  public void visitTopReport(TopReport topReport) {
/* 39 */     for (Domain domain : topReport.getDomains().values())
/* 40 */       visitDomain(domain); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/top/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */